package com.inews.business.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * TblBaseRoleResource entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="tbl_base_role_resource")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class TblBaseRoleResource implements java.io.Serializable {

	// Fields
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	private String roleId;
	private String resourceId;

	// Constructors

	/** default constructor */
	public TblBaseRoleResource() {
	}

	/** minimal constructor */
	public TblBaseRoleResource(Long id) {
		this.id = id;
	}

	/** full constructor */
	public TblBaseRoleResource(Long id, String roleId, String resourceId) {
		this.id = id;
		this.roleId = roleId;
		this.resourceId = resourceId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getResourceId() {
		return resourceId;
	}

	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}

}